namespace BowlingDO.Migrations
{
    using BowlingDO.Models;
    using System;
    using System.Data.Entity;
    using System.Data.Entity.Migrations;
    using System.Linq;

    internal sealed class Configuration : DbMigrationsConfiguration<BowlingDO.Models.Database>
    {
        public Configuration()
        {
            AutomaticMigrationsEnabled = false;
        }

        protected override void Seed(BowlingDO.Models.Database context)
        {
            //  This method will be called after migrating to the latest version.

            //  You can use the DbSet<T>.AddOrUpdate() helper extension method 
            //  to avoid creating duplicate seed data. E.g.
            //
            context.Groups.AddOrUpdate(
              p => p.Name,
              new Group
              {
                  Name = "Bolicheros Temibles",
                  Description = "Bolicheros listos para jugar",
                  Email = "bolicherostemibles@server.com",
                  Web = "www.server.com"
              }
            );

            context.Groups.AddOrUpdate(
              p => p.Name,
              new Group
              {
                  Name = "Bolicheros Banreservas",
                  Description = "Bolicheros banreservas",
                  Email = "bolicherosbanreservas@banreservas.com",
                  Web = "www.banreservas.com",

              }
            );
        }
    }
}
